/*
 * Message.h
 *
 *  Created on: Jun 16, 2009
 *      Author: ortal
 */

#ifndef MESSAGE_H_
#define MESSAGE_H_

#include <string>
#include "System_Message.h"
#include "RT_Message.h"

using namespace std;

class Message{

private:
	int _sender;
	int _receiver;
	string _type;
	RT* _rt_Msg;
	System_Message* _system_Msg;


public:
	Message();
	Message(int sender, RT* rt);
	Message(int sender, int receiver, RT* rt);
	Message(int sender, int receiver, System_Message* msg);
	~Message();
	int getSender();
	int getReceiver();
	string getMsgType();
	RT* getRtMsg();
	System_Message* getSysMsg();
	void setReceiver(int id);

};


#endif /* MESSAGE_H_ */
